SCALAPACK=/Users/linlin/Documents/Software/scalapack-2.0/libscalapack.a
RLIBS   = $(SCALAPACK) -llapack -lblas /usr/local/gfortran/lib/libgfortran.dylib

CC = openmpicxx
CFLAGS = -O3 -DAdd_ -D__cplusplus 

test.x: test.o 
	$(CC) $^ -o $@ $(RLIBS)

test.o: test.cpp
	$(CC) $(CFLAGS) -c $< 


clean:
	rm *.x *.o -f
